package com.generator.statics.customerSalesStatics.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author shkstart
 * @create 2022-10-01 21:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderOfProduct {
    /**
     * 订单id
     */
    @TableId(value = "orderid", type = IdType.AUTO)
    private String orderid;
//    /**
//     * 商品名称
//     */
//    private String productName;
    /**
     * 商品品牌
     */
    private String brandName;
    /**
     * 商品类型
     */
    private String typeName;
    /**
     * 商品型号
     */
    private String productModel;
    /**
     * 商品单价
     */
    private String productNum;
    /**
     * 商品单位
     */
    private String productUnit;
    /**
     * 商品单价
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private float productPrice;

    /**
     * 商品总金额
     */
    @TableField("PROTOTAL")
    @JsonSerialize(using = ToStringSerializer.class)
    private float prototal;

}
